import { api } from './request'

const requestApi = {
  queryCustNameList: `/common/queryCustNameList`, // 结算对象名称查询
  getValidContractPics: `/customer/getValidContractPics`, // 获取客户有效合同图片
  queryPortNameList: `/common/queryPortNameList`, // 港口名称查询
  queryContainerTypeList: `/common/queryContainerTypeList`, // 箱型查询
  queryCustInsuranceDown: `/truck/queryCustInsuranceDown`, // 查询保险公司下拉框
  addOrderInfo: `/sales/addOrderInfo`, // 填写业务单
  queryOrderInfoList: `/sales/queryOrderInfoList`, // 业务单列表查询
  queryAuditOrderInfoList: `/sales/queryAuditOrderInfoList`, // 业务单列表查询
  delOrderInfo: `/sales/delOrderInfo`, // 业务单删除
  getOrderInfoById: `/sales/getOrderInfoById`, // 业务单详情
  editOrderInfo: `/sales/editOrderInfo`, // 业务单修改
  queryVoyageContainerList: `/order/queryVoyageContainerList`, // 港口在船集装箱查询
  querySellExamineList: `/sales/querySellExamineList`, // 销售业绩查询
  querySellExamineDetail: `/sales/querySellExamineDetail`, // 销售业绩详情查询
  queryCustContainerList: `/sales/queryCustContainerList`, // 客户箱量查询
  queryCustContainerDetail: `/sales/queryCustContainerDetail`, // 客户箱量详情查询

  querySellUserListContainer: `/user/querySellUserListContainer`, // 查询集装箱销售管理列表
  updateSellExamine: `/user/updateSellExamine`, // 编辑销售
  deleteSellExamine: '/user/deleteSellExamine', // 移除销售
  addSellExamine: '/user/addSellExamine', // 批量添加销售

  getOrderContainerStatistics: '/sales/getOrderContainerStatistics', // 工作台-订单箱量
  querySalesMessageList: '/sales/querySalesMessageList', // 工作台-消息提醒
  queryRankingList: '/sales/queryRankingList', // 工作台-排行
  queryGoodsData: '/basicData/queryGoodsData', // 查询货名字典
  queryBill: '/bill/queryBill', // 查询账单
  queryCustPackingList: '/sales/queryCustPackingList', // 查询账单
  queryCustomerBillList: '/bill/queryCustomerBillList', // 用户账单查询
  salesCenterQueryShipOrderList: '/sales/queryShipOrderList', // 订单列表查询

  // 1.2
  queryDailyContainerAnalysisList: '/sales/queryDailyContainerAnalysisList', // 日箱量统计-列表
  queryDailyContainerAnalysisDetailList: '/sales/queryDailyContainerAnalysisDetailList', // 日箱量统计-详情
  querySalesContainerAnalysisList: '/sales/querySalesContainerAnalysisList', // 销售箱量分布-列表
  // 改单
  getOrderShipInfoForModify: '/sales/getOrderShipInfoForModify', // 改单审核-详情
  applyOrderInfoModify: '/sales/applyOrderInfoModify', // 改单审核-详情
  queryOrderInfoModifyList: '/sales/queryOrderInfoModifyList', // 改单审核-列表
  queryOrderModifyRecordById: '/sales/queryOrderModifyRecordById', // 改单审核-改单记录
  getOrderInfoModifyById: '/sales/getOrderInfoModifyById', // 改单审核-详情
  editOrderInfoModify: '/sales/editOrderInfoModify', // 改单审核-重新编辑
  getPriceLimitInfo: '/order/getPriceLimitInfo', // 限价管理-获取订单中应付海船金额
}
export default requestApi

export const queryCustNameList = (data) => api(requestApi.queryCustNameList, data)
export const getValidContractPics = (data) => api(requestApi.getValidContractPics, data)
export const queryPortNameList = (data) => api(requestApi.queryPortNameList, data)
export const queryContainerTypeList = (data) => api(requestApi.queryContainerTypeList, data)
export const addOrderInfo = (data) => api(requestApi.addOrderInfo, data)
export const queryCustInsuranceDown = (data) => api(requestApi.queryCustInsuranceDown, data)
export const querySellExamineList = (data) => api(requestApi.querySellExamineList, data)
export const querySellExamineDetail = (data) => api(requestApi.querySellExamineDetail, data)
export const queryCustContainerList = (data) => api(requestApi.queryCustContainerList, data)
export const queryCustContainerDetail = (data) => api(requestApi.queryCustContainerDetail, data)
export const queryOrderInfoList = (data) => api(requestApi.queryOrderInfoList, data)
export const queryAuditOrderInfoList = (data) => api(requestApi.queryAuditOrderInfoList, data)
export const queryVoyageContainerList = (data) => api(requestApi.queryVoyageContainerList, data)
export const delOrderInfo = (data) => api(requestApi.delOrderInfo, data)
export const getOrderInfoById = (data) => api(requestApi.getOrderInfoById, data)
export const editOrderInfo = (data) => api(requestApi.editOrderInfo, data)
// 销售管理
export const querySellUserListContainer = (data) => api(requestApi.querySellUserListContainer, data)
export const updateSellExamine = (data) => api(requestApi.updateSellExamine, data)
export const deleteSellExamine = (data) => api(requestApi.deleteSellExamine, data)
export const addSellExamine = (data) => api(requestApi.addSellExamine, data)
// 工作台
export const getOrderContainerStatistics = (data) => api(requestApi.getOrderContainerStatistics, data)
export const querySalesMessageList = (data) => api(requestApi.querySalesMessageList, data)
export const queryRankingList = (data) => api(requestApi.queryRankingList, data)
// 货名字典
export const queryGoodsData = (data) => api(requestApi.queryGoodsData, data)

export const queryBill = (data) => api(requestApi.queryBill, data)

export const queryCustPackingList = (data) => api(requestApi.queryCustPackingList, data)
export const queryCustomerBillList = (data) => api(requestApi.queryCustomerBillList, data)

// v1.2.0
export const salesCenterQueryShipOrderList = (data) => api(requestApi.salesCenterQueryShipOrderList, data)
export const queryDailyContainerAnalysisList = (data) => api(requestApi.queryDailyContainerAnalysisList, data)
export const queryDailyContainerAnalysisDetailList = (data) => api(requestApi.queryDailyContainerAnalysisDetailList, data)
export const querySalesContainerAnalysisList = (data) => api(requestApi.querySalesContainerAnalysisList, data)
export const getOrderShipInfoForModify = (data) => api(requestApi.getOrderShipInfoForModify, data)
export const applyOrderInfoModify = (data) => api(requestApi.applyOrderInfoModify, data)
export const queryOrderInfoModifyList = (data) => api(requestApi.queryOrderInfoModifyList, data)
export const queryOrderModifyRecordById = (data) => api(requestApi.queryOrderModifyRecordById, data)
export const getOrderInfoModifyById = (data) => api(requestApi.getOrderInfoModifyById, data)
export const editOrderInfoModify = (data) => api(requestApi.editOrderInfoModify, data)
export const getPriceLimitInfo = (data) => api(requestApi.getPriceLimitInfo, data)
